package io.github.talelin.latticy.dto.omsuser;

import io.github.talelin.autoconfigure.validator.EqualField;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * @author pedro@TaleLin
 * @author Juzi@TaleLin
 */
@Data
@NoArgsConstructor
public class UpdateOmsUserDTO {

    @Length(min = 2, max = 10, message = "{username.length}")
    private String username;

    @Email(message = "{email}")
    private String email;

}
